import time
time_1=int(time.time())
print(time_1)
time_1+=60*60*8
time_1-=1640908800#60*60*24*365*40+60*60*24*366*12
#1640908800
n=2022
r=1
s=0
f=0
m=0
y=1
#a=60*60*24*366*15+60*60*24*365*47
#b=60*60*24*365*52
#print(b)
t=time_1
while t>=86400:
    t-=86400
    r+=1
    while r>=365 and n%4!=0 or r>=365 and n%100==0:
        r-=365
        n+=1
    while r>=366 and n%4==0 or r>=366 and n%100!=0:
        r-=366
        n+=1
while t>=60:
    t-=60
    f+=1
    while f>=60:
        f-=60
        s+=1
if r>=31:
    r-=31
    y+=1

if r>=29 and n%4!=0:
    r-=29
    y+=1 
if r>=28 and n%4==0:
    r-=28
    y+=1

if r>=31:
    r-=31
    y+=1
if r>=30:
    r-=30
    y+=1
if r>=31:
    r-=31
    y+=1
if r>=30:
    r-=30
    y+=1
if r>=31:
    r-=31
    y+=1
if r>=31:
    r-=31
    y+=1
if r>=30:
    r-=30
    y+=1
if r>=31:
    r-=31
    y+=1
if r>=30:
    r-=30
    y+=1
if r>=31:
    r-=31
    y+=1
print(f"{n}年,{y}月,{r}日,{s}时,{f}分,{m}秒")

a=int(input("?"))
#a_1=int(input("?"))
a_2=int(input("?"))
a_3=int(input("?"))
a_4=int(input("?"))
a_5=int(input("?"))
t=int(time.time())
r=True
while r:
    while a>1970 and a%4!=0 or a>1970 and n%100==0:
        a-=1
        a_2+=365
        while a>1970 and a%4==0 or a>1970 and n%100!=0:
            a-=1
            a_2+=366
            
    while a_2>10000:
        a_2-=10000
        a_3+=240000
    while a_2>1000:
        a_2-=1000
        a_3+=24000
    while a_2>100:
        a_2-=100
        a_3+=2400
    while a_2>10:
        a_2-=10
        a_3+=240
    while a_2>1:
        a_2-=1
        a_3+=24

    while a_3>10000:
        a_3-=10000
        a_4+=600000
    while a_3>1000:
        a_3-=1000
        a_4+=60000
    while a_3>100:
        a_3-=100
        a_4+=6000
    while a_3>10:
        a_3-=10
        a_4+=600
    while a_3>1:
        a_3-=1
        a_4+=60


    while a_4>1000000:
        a_4-=1000000
        a_5+=60000000
    while a_4>100000:
        a_4-=100000
        a_5+=6000000
    while a_4>10000:
        a_4-=10000
        a_5+=600000
    while a_4>1000:
        a_4-=1000
        a_5+=60000
    while a_4>100:
        a_4-=100
        a_5+=6000
    while a_4>10:
        a_4-=10
        a_5+=600
    while a_4>1:
        a_4-=1
        a_5+=60
    while a<1970 and a_2<1 and a_3<1 and a_4<1:
        r=False
if a_5>t:
    print(a_5-t)
if a_5>t:
    print(t-a_5)